package cn.eonshine.cuba.lsms.modular.basic.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * Train Wagon Basic Infor / 铁路罐车信息维护
 * </p>
 *
 * @author Alan
 * @since 2018-10-22
 */
@TableName("b_train_wagon")
public class TrainWagon extends Model<TrainWagon> {

    private static final long serialVersionUID = 1L;

    /**
     * train wagon primary key
                         运费主键
     */
    @TableId("ID")
    private String id;
    /**
     * sys_office 所属公司
     */
    @TableField("SYS_ORG")
    private String sysOrg;
    /**
     * Whether to enable：0-no；1-yes
                         是否启用：0-禁用；1-启用
     */
    @TableField("ENABLE")
    private String enable;
    /**
     * start using time
                         启用时间
     */
    @TableField("START_DAY")
    private Date startDay;
    /**
     * end using time                             停用时间
     */
    @TableField("END_DAY")
    private Date endDay;
    /**
     * operation number
                         运营号
     */
    @TableField("OPERATION_NO")
    private String operationNo;
    /**
     * Round trip time（day）
     */
    @TableField("ROUND_TRIP_TIME")
    private BigDecimal roundTripTime;
    /**
     * last capacity certification date
                         罐容表更新日期
     */
    @TableField("LAST_CAPACITY_CERTIFY_DATE")
    private Date lastCapacityCertifyDate;
    /**
     * Oil Product Class(I)：Light oil, heavy oil
                         黑白油
     */
    @TableField("OIL_TYPE1")
    private String oilType1;
    /**
     * Group by origin: Iran, Russia, Canada
                         按照产地分：伊朗、俄罗斯、加拿大
     */
    @TableField("WAGON_TYPE")
    private String wagonType;
    /**
     * wagon capacity
                         罐车载重量wagon capacity
                         罐车载重量
     */
    @TableField("WAGON_CAPACITY")
    private BigDecimal wagonCapacity;
    /**
     * creator
                         创建者
     */
    @TableField("CREATE_BY")
    private String createBy;
    /**
     * Create time
                         创建时间
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * updater
                         更新者
     */
    @TableField("UPDATE_BY")
    private String updateBy;
    /**
     * Update time
                         更新时间
     */
    @TableField("UPDATE_DATE")
    private Date updateDate;
    /**
     * Remarks information
                         备注信息
     */
    @TableField("REMARKS")
    private String remarks;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSysOrg() {
        return sysOrg;
    }

    public void setSysOrg(String sysOrg) {
        this.sysOrg = sysOrg;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public Date getStartDay() {
        return startDay;
    }

    public void setStartDay(Date startDay) {
        this.startDay = startDay;
    }

    public Date getEndDay() {
        return endDay;
    }

    public void setEndDay(Date endDay) {
        this.endDay = endDay;
    }

    public String getOperationNo() {
        return operationNo;
    }

    public void setOperationNo(String operationNo) {
        this.operationNo = operationNo;
    }

    public BigDecimal getRoundTripTime() {
        return roundTripTime;
    }

    public void setRoundTripTime(BigDecimal roundTripTime) {
        this.roundTripTime = roundTripTime;
    }

    public Date getLastCapacityCertifyDate() {
        return lastCapacityCertifyDate;
    }

    public void setLastCapacityCertifyDate(Date lastCapacityCertifyDate) {
        this.lastCapacityCertifyDate = lastCapacityCertifyDate;
    }

    public String getOilType1() {
        return oilType1;
    }

    public void setOilType1(String oilType1) {
        this.oilType1 = oilType1;
    }

    public String getWagonType() {
        return wagonType;
    }

    public void setWagonType(String wagonType) {
        this.wagonType = wagonType;
    }

    public BigDecimal getWagonCapacity() {
        return wagonCapacity;
    }

    public void setWagonCapacity(BigDecimal wagonCapacity) {
        this.wagonCapacity = wagonCapacity;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TrainWagon{" +
        ", id=" + id +
        ", sysOrg=" + sysOrg +
        ", enable=" + enable +
        ", startDay=" + startDay +
        ", endDay=" + endDay +
        ", operationNo=" + operationNo +
        ", roundTripTime=" + roundTripTime +
        ", lastCapacityCertifyDate=" + lastCapacityCertifyDate +
        ", oilType1=" + oilType1 +
        ", wagonType=" + wagonType +
        ", wagonCapacity=" + wagonCapacity +
        ", createBy=" + createBy +
        ", createDate=" + createDate +
        ", updateBy=" + updateBy +
        ", updateDate=" + updateDate +
        ", remarks=" + remarks +
        "}";
    }
}
